package test;

public class Tit2 {
	public static void main(String[] args) {
int num =12345;
		
		int g = num % 10;
		int s = num / 10 %10;
		int b = num / 100%10;
		int q = num / 1000%10;
		int w = num / 10000;
		int result = g + s + b + q + w;
		System.out.println(result);
	}
}
